#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<math.h>
int sbtm(int a)
{
	int count = 1;
	int x,c = 0;
	for (x = 2; 1;x= x * 2)
	{
		c = a & (x-1);
		if (c != 0)
		{
			break;
	     }
		count++;
	}

	return count;
}
int main()
{
	int a = 0;
	int b = 0;
	scanf("%d", &a);
	b=sbtm(a);
	printf("\n%d", b);
	return 0;
}


